#ifndef OBSCORETREE_H
#define OBSCORETREE_H

#include "ObStatic.h"
#include "ObPlayer.h"

class ObScoreTree : public ObStatic{
public:
	enum FLAG {FLAGTREE = 80};

	ObScoreTree();
	~ObScoreTree();

	bool setId(int nid);
	static bool checkType(int obID);
	static bool checkInfo(int ninfo);

	void collidedWith(ObObject* object, CollisionRS rs);
	void update(float dt);
	void render(ID3DXSprite* mSprite);
	void drawFlag(ID3DXSprite* mSprite);

	static bool loadTexture();
	static bool releaseTexture();

private:
	static	IDirect3DTexture9* mTex;
	static	IDirect3DTexture9* mFlagTex;
	bool mIsCatched;
	float count;
	int mCurrentSprite;

	D3DXVECTOR3 mFlagSpritePos;
	D3DXVECTOR3 mFlagCenter;
};

#endif